﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A23 RID: 2595
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LeaveChallengeScRsp : IMessage<LeaveChallengeScRsp>, IMessage, IEquatable<LeaveChallengeScRsp>, IDeepCloneable<LeaveChallengeScRsp>, IBufferMessage
	{
		// Token: 0x170020C9 RID: 8393
		// (get) Token: 0x06007438 RID: 29752 RVA: 0x0013695C File Offset: 0x00134B5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LeaveChallengeScRsp> Parser
		{
			get
			{
				return LeaveChallengeScRsp._parser;
			}
		}

		// Token: 0x170020CA RID: 8394
		// (get) Token: 0x06007439 RID: 29753 RVA: 0x00136963 File Offset: 0x00134B63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LeaveChallengeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170020CB RID: 8395
		// (get) Token: 0x0600743A RID: 29754 RVA: 0x00136975 File Offset: 0x00134B75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LeaveChallengeScRsp.Descriptor;
			}
		}

		// Token: 0x0600743B RID: 29755 RVA: 0x0013697C File Offset: 0x00134B7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveChallengeScRsp()
		{
		}

		// Token: 0x0600743C RID: 29756 RVA: 0x00136984 File Offset: 0x00134B84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveChallengeScRsp(LeaveChallengeScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600743D RID: 29757 RVA: 0x001369A9 File Offset: 0x00134BA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveChallengeScRsp Clone()
		{
			return new LeaveChallengeScRsp(this);
		}

		// Token: 0x170020CC RID: 8396
		// (get) Token: 0x0600743E RID: 29758 RVA: 0x001369B1 File Offset: 0x00134BB1
		// (set) Token: 0x0600743F RID: 29759 RVA: 0x001369B9 File Offset: 0x00134BB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06007440 RID: 29760 RVA: 0x001369C2 File Offset: 0x00134BC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LeaveChallengeScRsp);
		}

		// Token: 0x06007441 RID: 29761 RVA: 0x001369D0 File Offset: 0x00134BD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LeaveChallengeScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007442 RID: 29762 RVA: 0x00136A00 File Offset: 0x00134C00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007443 RID: 29763 RVA: 0x00136A3F File Offset: 0x00134C3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007444 RID: 29764 RVA: 0x00136A47 File Offset: 0x00134C47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007445 RID: 29765 RVA: 0x00136A50 File Offset: 0x00134C50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007446 RID: 29766 RVA: 0x00136A84 File Offset: 0x00134C84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007447 RID: 29767 RVA: 0x00136AC2 File Offset: 0x00134CC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LeaveChallengeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007448 RID: 29768 RVA: 0x00136AF3 File Offset: 0x00134CF3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007449 RID: 29769 RVA: 0x00136AFC File Offset: 0x00134CFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002C64 RID: 11364
		private static readonly MessageParser<LeaveChallengeScRsp> _parser = new MessageParser<LeaveChallengeScRsp>(() => new LeaveChallengeScRsp());

		// Token: 0x04002C65 RID: 11365
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002C66 RID: 11366
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04002C67 RID: 11367
		private uint retcode_;
	}
}
